
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>实现http服务 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="http静态资源服务器.html" />
    
    
    <link rel="prev" href="gomod.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    Part2 模拟商城
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="payflow.html">
            
                <a href="payflow.html">
            
                    
                    订单支付流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="goinstall.html">
            
                <a href="goinstall.html">
            
                    
                    go 语言环境安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="gomod.html">
            
                <a href="gomod.html">
            
                    
                    包管理工具 go mod
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.4" data-path="http.html">
            
                <a href="http.html">
            
                    
                    实现http服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="http静态资源服务器.html">
            
                <a href="http静态资源服务器.html">
            
                    
                    http静态资源服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="mysql表设计.html">
            
                <a href="mysql表设计.html">
            
                    
                    mysql表设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="go的mysql操作.html">
            
                <a href="go的mysql操作.html">
            
                    
                    go的mysql操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="go的api接口实现.html">
            
                <a href="go的api接口实现.html">
            
                    
                    go的api接口实现
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../alipay/">
            
                <a href="../alipay/">
            
                    
                    Part3 接入支付宝
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../alipay/flow.html">
            
                <a href="../alipay/flow.html">
            
                    
                    支付宝文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../alipay/secret.html">
            
                <a href="../alipay/secret.html">
            
                    
                    密码学-非对称加密
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">扩展</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../plugins.md">
            
                <span>
            
                    
                    插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../themes.md">
            
                <span>
            
                    
                    主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../bookjson.md">
            
                <span>
            
                    
                    bookjson
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >实现http服务</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x5B9E;&#x73B0;http&#x670D;&#x52A1;">&#x5B9E;&#x73B0;http&#x670D;&#x52A1;</h2>
<p>go&#x7684;&#x6807;&#x51C6;&#x5E93;<a href="https://godoc.org/net/http" target="_blank">net/http</a>&#x540C;&#x65F6;&#x63D0;&#x4F9B;&#x4E86;http&#x5BA2;&#x6237;&#x7AEF;&#x548C;&#x670D;&#x52A1;&#x7AEF;&#x7684;&#x5B9E;&#x73B0;&#xFF0C;&#x57FA;&#x4E8E;<a href="https://godoc.org/net/http" target="_blank">net/http</a>&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;web&#x670D;&#x52A1;&#x7684;&#x5FEB;&#x901F;&#x642D;&#x5EFA;&#x3002;</p>
<h4 id="&#x521B;&#x5EFA;&#x670D;&#x52A1;">&#x521B;&#x5EFA;&#x670D;&#x52A1;</h4>
<pre><code>func main() {
    http.HandleFunc(&quot;/hello&quot;, sayHello)
    http.ListenAndServe(&quot;:8080&quot;, nil)
}

func sayHello(w http.ResponseWriter, r *http.Request) {
    w.Write([]byte(&quot;hello world&quot;))}
</code></pre><h4 id="&#x5B9E;&#x73B0;&#x539F;&#x7406;">&#x5B9E;&#x73B0;&#x539F;&#x7406;</h4>
<p>&#x4F7F;&#x7528;net/http&#x5305;&#x53EA;&#x9700;&#x8981;&#x4E24;&#x884C;&#x4EE3;&#x7801;&#x5C31;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x4E00;&#x4E2A;web&#x670D;&#x52A1;&#x3002;&#x4F46;&#x662F;go&#x5728;&#x5E95;&#x5C42;&#x662F;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x7684;&#x5462;&#xFF1F;
&#x4E00;&#x822C;&#x6765;&#x8BF4;&#xFF0C;http&#x7684;&#x670D;&#x52A1;&#x7AEF;&#x5904;&#x7406;&#x6D41;&#x7A0B;&#x90FD;&#x662F;&#x5982;&#x4E0B;&#x56FE;&#x8868;&#x793A;&#xFF1A;</p>
<p><img src="../assets/images/http.png" alt="http&#x8BF7;&#x6C42;&#x5904;&#x7406;"></p>
<p>&#x5BA2;&#x6237;&#x7AEF;Client&#x53D1;&#x51FA;&#x8BF7;&#x6C42;request,&#x670D;&#x52A1;&#x7AEF;Serve&#x63A5;&#x6536;&#x5230;&#x8BF7;&#x6C42;&#x540E;&#x5148;&#x8FDB;&#x5165;&#x8DEF;&#x7531;router&#xFF0C;&#x7136;&#x540E;&#x4E3A;&#x5BF9;&#x5E94;&#x7684;&#x8BF7;&#x6C42;(request&#x627E;&#x5230;&#x5BF9;&#x5E94;&#x7684;&#x5904;&#x7406;&#x5668;handler&#x5904;&#x7406;,&#x5904;&#x7406;&#x5668;handler&#x5BF9;&#x8BF7;&#x6C42;&#x7684;&#x5904;&#x7406;&#x7ED3;&#x679C;&#x5C31;&#x662F;&#x6784;&#x5EFA;&#x4E86;&#x8FD4;&#x56DE;&#x503C;response&#x3002;
<br>
&#x5176;&#x5B9E;go&#x7684;http&#x670D;&#x52A1;&#x4E5F;&#x662F;&#x4E00;&#x6837;&#x7684;&#x6D41;&#x7A0B;&#x3002;<br>
&#x518D;&#x56DE;&#x5934;&#x770B;&#x4E0A;&#x9762;&#x5B9E;&#x73B0;&#x7684;server&#x4EE3;&#x7801;&#xFF0C;&#x9996;&#x5148;&#x8C03;&#x7528;&#x4E86; <strong>Http.HandleFunc</strong>
&#x8FD9;&#x4E2A;&#x51FD;&#x6570;&#x7684;&#x529F;&#x80FD;&#x5C31;&#x662F;&#x6CE8;&#x518C;&#x8DEF;&#x7531;&#x3002;
&#x5728;&#x6E90;&#x7801;&#x4E2D;HandleFunc&#x6700;&#x7EC8;&#x662F;&#x5C06;&#x6211;&#x4EEC;&#x5B9E;&#x73B0;&#x7684;sayHello&#x51FD;&#x6570;&#x8F6C;&#x6210;&#x4E86;&#x4E00;&#x4E2A;handler&#x5BF9;&#x8C61;&#xFF0C;&#x5E76;&#x6CE8;&#x518C;&#x8FDB;&#x4E86;servermux&#x91CC;&#x9762;&#x3002;</p>
<h5 id="handler">handler</h5>
<p>handler &#x662F;&#x4E00;&#x4E2A;&#x5B9E;&#x73B0;ServeHTTP&#x65B9;&#x6CD5;&#x7684;&#x63A5;&#x53E3;&#x7C7B;&#x578B;&#x3002;&#x53EA;&#x8981;&#x7C7B;&#x578B;&#x5177;&#x5907;ServeHTTP&#x51FD;&#x6570;&#x90A3;&#x4E48;&#x5B83;&#x5C31;&#x5B9E;&#x73B0;&#x4E86;Handler&#x63A5;&#x53E3;&#x3002;</p>
<pre><code>type Handler interface {
    ServeHTTP(ResponseWriter, *Request)
}
</code></pre><p>&#x518D;&#x6765;&#x770B; HandlerFunc &#x662F;&#x5982;&#x4F55;&#x628A; sayHello&#x51FD;&#x6570; &#x300C;&#x5C01;&#x88C5;&#x300D;&#x6210;&#x4E00;&#x4E2A;Handler&#x5BF9;&#x8C61;&#x7684;&#x5462;?</p>
<pre><code>func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Request)) {
    if handler == nil {
        panic(&quot;http: nil handler&quot;)
    }
    mux.Handle(pattern, HandlerFunc(handler))
}
</code></pre><p>&#x4E3B;&#x8981;&#x662F;&#x8C03;&#x7528;&#x4E86;HandlerFunc(handler) &#x628A;sayHello&#x53D8;&#x6210;&#x4E86;Handler&#x3002;</p>
<pre><code>type HandlerFunc func(ResponseWriter, *Request)

// ServeHTTP calls f(w, r).
func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request) {
    f(w, r)
}
</code></pre><p>&#x5177;&#x4F53;&#x770B;HandlerFunc&#x7ADF;&#x7136;&#x795E;&#x5947;&#x7684;&#x53D1;&#x73B0;&#x5B83;&#x662F;&#x4E00;&#x4E2A;&#x5B9E;&#x73B0;&#x4E86;ServeHTTP&#x7684;&#x51FD;&#x6570;&#x7C7B;&#x578B;&#xFF0C;HandlerFunc(handler)&#x8FD9;&#x4E00;&#x6B65;&#x4EC5;&#x4EC5;&#x662F;&#x5B8C;&#x6210;&#x4E86;&#x4E00;&#x4E2A;&#x51FD;&#x6570;&#x7C7B;&#x578B;&#x5230;&#x51FD;&#x6570;&#x7C7B;&#x578B;&#x7684;&#x8F6C;&#x6362;&#x3002;sayHello&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x5C31;&#x7B49;&#x4E8E;&#x662F;Handler&#x7684;ServeHTTP&#x65B9;&#x6CD5;&#x3002;
&#x4ECE;&#x8FD9;&#x91CC;&#x770B;go&#x8BED;&#x8A00;&#x7684;&#x7C7B;&#x578B;&#x548C;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x662F;&#x4E0D;&#x662F;&#x5F88;&#x6709;&#x610F;&#x601D;&#xFF1F;</p>
<h5 id="servermux">servermux</h5>
<p>&#x6CE8;&#x518C;handler&#x7684;&#x4EE3;&#x7801;&#x91CC;&#x51FA;&#x73B0;&#x4E86;DefaultServeMux, &#x8FD9;&#x662F;&#x4E00;&#x4E2A;ServeMux&#x7684;&#x5BF9;&#x8C61;&#x3002;</p>
<pre><code>type ServeMux struct {
    mu    sync.RWMutex
    m     map[string]muxEntry
    es    []muxEntry // slice of entries sorted from longest to shortest.
    hosts bool       // whether any patterns contain hostnames
}
</code></pre><p>m&#x8FD9;&#x4E2A;&#x5B57;&#x6BB5;&#x662F;&#x6700;&#x91CD;&#x8981;&#x7684;&#x7ED3;&#x6784;&#xFF0C;&#x5B58;&#x653E;&#x4E86;&#x6574;&#x4E2A;&#x670D;&#x52A1;&#x7684;&#x5177;&#x4F53;&#x8DEF;&#x7531;&#x4FE1;&#x606F;&#xFF0C;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;map&#x53EF;&#x4EE5;&#x8BA9;&#x6BCF;&#x4E00;&#x4E2A;&#x8DEF;&#x5F84;&#x90FD;&#x627E;&#x5230;&#x5BF9;&#x5E94;&#x7684;handler&#x3002;
&#x770B;&#x4E00;&#x4E0B;mux&#x7684;Handle&#x65B9;&#x6CD5;&#x5C31;&#x77E5;&#x9053;,  map&#x7684;key&#x503C;&#x5C31;&#x662F;&#x8DEF;&#x5F84;&#xFF0C;value&#x662F;&#x8DEF;&#x5F84;&#x548C;handler&#x4E00;&#x8D77;&#x7EC4;&#x6210;&#x7684;&#x4E00;&#x4E2A;&#x7ED3;&#x6784;&#x4F53;</p>
<pre><code>func (mux *ServeMux) Handle(pattern string, handler Handler) {
   ...
    e := muxEntry{h: handler, pattern: pattern}
    mux.m[pattern] = e
   ...
}
</code></pre><p>&#x4E0A;&#x9762;&#x5C31;&#x662F;&#x8DEF;&#x7531;&#x7684;&#x7ED3;&#x6784;&#x4EE5;&#x53CA;&#x8DEF;&#x7531;&#x6CE8;&#x518C;&#x7684;&#x8FC7;&#x7A0B;&#x3002;&#x4E0B;&#x9762;&#x770B;&#x4E0B;servermux&#x662F;&#x8DEF;&#x7531;&#x662F;&#x5982;&#x4F55;&#x5DE5;&#x4F5C;&#x7684;&#x3002;<br>
&#x5728;&#x540C;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x4E0B;&#xFF0C;&#x53EF;&#x4EE5;&#x53D1;&#x73B0;ServeMux&#x5BF9;&#x8C61;&#x7684;Handler&#x65B9;&#x6CD5;&#xFF0C;&#x8FD9;&#x4E2A;Handler&#x65B9;&#x6CD5;&#x7684;&#x529F;&#x80FD;&#x5C31;&#x662F;&#x6839;&#x636E;&#x8BF7;&#x6C42;&#x91CC;&#x9762;&#x7684;url &#x4ECE;&#x8DEF;&#x7531;&#x7ED3;&#x6784;map&#x91CC;&#x53D6;&#x5F97;&#x5BF9;&#x5E94;&#x7684;&#x5904;&#x7406;handler&#x5B9E;&#x4F53;&#x3002;</p>
<pre><code>func (mux *ServeMux) Handler(r *Request) (h Handler, pattern string) {
    ...

    return mux.handler(host, r.URL.Path)
    ...
}
func (mux *ServeMux) handler(host, path string) (h Handler, pattern string) {
    ...
    h, pattern = mux.match(path)
    ...
}

func (mux *ServeMux) match(path string) (h Handler, pattern string) {
    // Check for exact match first.
    v, ok := mux.m[path]
    if ok {
        return v.h, v.pattern
    }
    // Check for longest valid match.  mux.es contains all patterns
    // that end in / sorted from longest to shortest.
    for _, e := range mux.es {
        if strings.HasPrefix(path, e.pattern) {
            return e.h, e.pattern
        }
    }
    return nil, &quot;&quot;
}
</code></pre><h5 id="&#x8BF7;&#x6C42;&#x5904;&#x7406;&#x6D41;&#x7A0B;">&#x8BF7;&#x6C42;&#x5904;&#x7406;&#x6D41;&#x7A0B;</h5>
<p>&#x4E0A;&#x9762;&#x662F;&#x8DEF;&#x7531;&#x5982;&#x4F55;&#x6CE8;&#x518C;&#x548C;&#x67E5;&#x627E;&#x7684;&#xFF0C;&#x542F;&#x52A8;&#x670D;&#x52A1;&#x8FD8;&#x662F;&#x9760;&#x7684;&#x4E0B;&#x9762;&#x8FD9;&#x4E2A;&#x8BED;&#x53E5;&#x3002;</p>
<pre><code>http.ListenAndServe(&quot;:8080&quot;, nil)
</code></pre><p>&#x8FDB;&#x5165;&#x4EE3;&#x7801;&#x53EF;&#x4EE5;&#x603B;&#x7ED3;&#x6210;&#x5982;&#x4E0B;&#x7684;&#x8FC7;&#x7A0B;:</p>
<ol>
<li>&#x76D1;&#x542C;&#x7AEF;&#x53E3;&#xFF0C;&#x5FAA;&#x73AF;&#x76D1;&#x542C;socket</li>
</ol>
<pre><code>ln, err := net.Listen(&quot;tcp&quot;, addr)
...
for {
    ...
}
</code></pre><p>2.&#x63A5;&#x6536;&#x5230;&#x8BF7;&#x6C42;&#x540E;&#xFF0C;&#x521B;&#x5EFA;&#x7F51;&#x7EDC;&#x8FDE;&#x63A5;&#x5E76;&#x542F;&#x52A8;&#x4E00;&#x4E2A;goroutine&#x5904;&#x7406;</p>
<pre><code>rw, e := l.Accept()

go c.serve(connCtx)
</code></pre><p>3.&#x4ECE;&#x8BE5;&#x94FE;&#x63A5;&#x8BFB;&#x53D6;&#x8BF7;&#x6C42;&#x53C2;&#x6570;&#x6784;&#x9020;&#x51FA;http.Request&#x5BF9;&#x8C61;, &#x5E76;&#x4EA4;&#x7ED9;ServeMux&#x5904;&#x7406;</p>
<pre><code>serverHandler{c.server}.ServeHTTP(w, w.req)
</code></pre><p>4.ServeMux &#x5C31;&#x662F;&#x8C03;&#x7528;Handler&#x627E;&#x5230;&#x8BF7;&#x6C42;url&#x7684;handler&#x5B9E;&#x4F8B;&#xFF0C;&#x5E76;&#x8C03;&#x7528;handler&#x7684;&#x5904;&#x7406;&#x65B9;&#x6CD5;ServeHttp&#x8FDB;&#x884C;&#x5904;&#x7406;&#x3002;</p>
<pre><code>func (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request) {
    if r.RequestURI == &quot;*&quot; {
        if r.ProtoAtLeast(1, 1) {
            w.Header().Set(&quot;Connection&quot;, &quot;close&quot;)
        }
        w.WriteHeader(StatusBadRequest)
        return
    }
    h, _ := mux.Handler(r)
    h.ServeHTTP(w, r)
}
</code></pre><p>5.&#x5904;&#x7406;&#x5B8C;&#x6210;&#x540E;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;(response)&#xFF0C;&#x5E76;&#x5173;&#x95ED;&#x8BF7;&#x6C42;&#x8FDE;&#x63A5;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="gomod.html" class="navigation navigation-prev " aria-label="Previous page: 包管理工具 go mod">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="http静态资源服务器.html" class="navigation navigation-next " aria-label="Next page: http静态资源服务器">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"实现http服务","level":"1.2.4","depth":2,"next":{"title":"http静态资源服务器","level":"1.2.5","depth":2,"path":"two_shop/http静态资源服务器.md","ref":"two_shop/http静态资源服务器.md","articles":[]},"previous":{"title":"包管理工具 go mod","level":"1.2.3","depth":2,"path":"two_shop/gomod.md","ref":"two_shop/gomod.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"two_shop/http.md","mtime":"2020-05-27T23:51:24.776Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-05-30T14:47:16.991Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

